package com.etooling.framework.entity;

import com.etooling.framework.svo.AbstractEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 第三方接入认证管理
 */
@Entity
@Table(name = "t_platform_auth", schema = "framework")
public class PlatformAuth extends AbstractEntity {
    public static final String WEI_XIN_PLATFORM = "wx";

    public static final String QY_WEI_XIN_PLATFORM = "qy_wx";//企业微信
    public static final String DING_DING_PLATFORM = "ding";

    String platformType;//wx 微信 ;ding 钉钉
    String platformOpenId;//唯一
    String platformUnionId;
    String nickName;//昵称
    String avatar;//头像
    String mobile;
    String sex;

    Date createTime;//创建时间

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    String area;//地区，省-市-县

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getPlatformType() {
        return platformType;
    }

    public void setPlatformType(String platformType) {
        this.platformType = platformType;
    }


    public String getPlatformUnionId() {
        return platformUnionId;
    }

    public void setPlatformUnionId(String platformUnionId) {
        this.platformUnionId = platformUnionId;
    }

    public String getPlatformOpenId() {
        return platformOpenId;
    }

    public void setPlatformOpenId(String platformOpenId) {
        this.platformOpenId = platformOpenId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
}
